import request from '@/utils/request'

export function dictList() {
  return request({
    url: '/api/sys/dict/getList',
    method: 'get'
  })
}

export function deleteDict(id) {
  return request({
    url: '/api/sys/dict/'+ id,
    method: 'delete'
  })
}

export function codePageList(params) {
  return request({
    url: '/api/sys/dictInfo/pageList',
    method: 'get',
    params
  })
}

export function deleteCode(data) {
  return request({
    url: '/api/sys/dictInfo',
    method: 'delete',
    data
  })
}
